package com.mdp.behavioral.mediator;

public abstract class EachOther {
    
    protected String key;
    
    protected String val;
    
    public void exchange(String val) {
        this.val = val;
        System.out.println(this.key + "#" + this.val);
    }
    
    public EachOther(String key, String value) {
        this.key = key;
        this.val = value;
    }
    
    public abstract void exchange(String val, Mediator mediator);
    
    public String getKey() {
        return key;
    }
    
    public String getVal() {
        return val;
    }
    
}
